<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="./../../layui/css/layui.css">
    <title>线样式编辑</title>
    <style>
        .l_title{
            font-size: 14px;
            color: #868686;
            font-weight: bold;
            text-indent: 2px;
            text-align: left !important;
            padding: 9px 0 !important;
        }
        .none{
            display: none;
        }
        /*  */
        .hidden{
            display: none;
        }
        .m_c_upload{
            position: absolute;
            top: 50%;
            left: 50%;
            margin-left: -36px;
            margin-top: -10px;
        }
        .screenshot{
            position: absolute;
            top: 10px;
            left: 10px;
        }
        .colorChoose{
            float: left !important;
            width: 120px;
        }
        .layui-form-select dl dd.layui-this{
            background-color: #00aeff !important;
        }
        .layui-form-radioed>i, .layui-form-radio>i:hover {
            color: #00aeff !important;
        }
        .layui-form-item .layui-form-label{
            white-space:unset!important;
        }
    </style>
</head>
<body>
    <div class="layui-form" lay-filter="sIfram">
        <div class="layui-form-item">
            <label class="layui-form-label l_title">选择点类型</label>
            <div class="layui-input-block">
                <select name="styletype" id="allLine" lay-filter="allLine">
                    <option value="polylinelayer">基础线</option>
                    <option value="polylineWallLayer">墙</option>
                    <option value="polylinevolumelayer">扫掠体</option>
                    <option value="Streetscape">街景</option>
                    <option value="polylinemodellayer">沿线模型(切片不可用)</option>
                </select> 
            </div>
        </div>
        <!-- 基础线 -->
        <div class="basisPoints none">
            <div class="layui-form-item">
                <label  class="layui-form-label l_title">选择矢量服务</label>
                <div class="layui-input-block">
                    <select name="layerName" lay-filter="demo1">
                        <option value="13">21</option>
                        <option value="231">32</option>
                        <option value="333">32</option>
                        <option value="32">32</option>
                    </select> 
                </div>
            </div>
            <div class="layui-form-item">
                <label  class="layui-form-label l_title">显示级别</label>
                <div class="layui-input-block">
                    <div style="float: left;width: 32%;margin-right: 2%;">
                        <input type="text" name="level_min"  placeholder="0" autocomplete="off" class="layui-input">
                    </div>
                    <div style="float: left; width: 32%;margin-right: 2%;">
                        <input type="text" name="level_max"  placeholder="21" autocomplete="off" class="layui-input">
                    </div>
                </div>
            </div>
            <div class="layui-form-item">
                <label  class="layui-form-label l_title">线颜色</label>
                <div class="layui-input-block">
                    <input type="text" name="material" value="#1c97f5" placeholder="请选择颜色" class="layui-input colorChoose" id="pointColor-input">
                    <div style="float: left;">
                        <div id="pointColor" style="margin: 0;"></div>
                    </div>
                </div>
            </div>
            <div class="layui-form-item">
                <label  class="layui-form-label l_title">线类型</label>
                <div class="layui-input-block">
                    <select name="arcType" lay-verify="">
                        <option value="直线">直线</option>
                        <option value="虚线">虚线</option>
                    </select> 
                </div>
            </div>
            <div class="layui-form-item">
                <label  class="layui-form-label l_title">线宽</label>
                <div class="layui-input-block">
                    <input type="text" name="width"  placeholder="请输入线宽" autocomplete="off" class="layui-input"> 
                </div>
            </div>
            <div class="layui-form-item">
                <label  class="layui-form-label l_title">高度方式</label>
                <div class="layui-input-block">
                    <select name="clampToGround" lay-verify="">
                        <option value="true">贴地</option>    
                        <option value="false">不贴地</option>
                    </select> 
                </div>
            </div>
            <div class="layui-form-item">
                <label  class="layui-form-label l_title">最小可视距离</label>
                <div class="layui-input-block">
                    <input type="text" name="near"  placeholder="请输入最小可视距离" autocomplete="off" class="layui-input"> 
                </div>
            </div>
            <div class="layui-form-item">
                <label  class="layui-form-label l_title">最大可视距离</label>
                <div class="layui-input-block">
                    <input type="text" name="far"  placeholder="请输入最大可视距离" autocomplete="off" class="layui-input"> 
                </div>
            </div>
        </div>
        <!-- 墙 -->
        <div class="textPoint none">
            <div class="layui-form-item">
                <label  class="layui-form-label l_title">选择矢量服务</label>
                <div class="layui-input-block">
                    <select name="layerName" lay-filter="demo1">
                        <option value="21">21</option>
                        <option value="32">32</option>
                        <option value="32">32</option>
                        <option value="32">32</option>
                    </select> 
                </div>
            </div>
            <div class="layui-form-item">
                <label  class="layui-form-label l_title">显示级别</label>
                <div class="layui-input-block">
                    <div style="float: left;width: 32%;margin-right: 2%;">
                        <input type="text" name="level_min"  placeholder="0" autocomplete="off" class="layui-input">
                    </div>
                    <div style="float: left; width: 32%;margin-right: 2%;">
                        <input type="text" name="level_max"  placeholder="21" autocomplete="off" class="layui-input">
                    </div>
                </div>
            </div>
            <div class="layui-form-item">
                <label  class="layui-form-label l_title">是否显示</label>
                <div class="layui-input-block">
                  <input type="checkbox"  name="show" lay-skin="switch" lay-filter="switchTest" lay-text="显示|不显示">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label l_title">材质</label>
                <div class="layui-input-block">
                    <input type="text" value="#1c97f5" name="material" placeholder="请选择颜色" class="layui-input colorChoose" id="tpFillColor-input">
                    <div style="float: left;">
                        <div id="tpFillColor" style="margin: 0;"></div>
                    </div>
                </div>
            </div>
            <div class="layui-form-item">
                <label  class="layui-form-label l_title">是否填充</label>
                <div class="layui-input-block">
                  <input type="checkbox"  name="fill" lay-skin="switch" lay-filter="switchTest" lay-text="填充|不填充">
                </div>
            </div>
            <div class="layui-form-item">
                <label  class="layui-form-label l_title">外边框显示</label>
                <div class="layui-input-block">
                  <input type="checkbox"  name="outline" lay-skin="switch" lay-filter="WShowBorder" lay-text="显示|不显示">
                </div>
            </div>
            <div class="layui-form-item none" id="WBorderColor">
                <label  class="layui-form-label l_title">边框色</label>
                <div class="layui-input-block">
                    <input type="text" value="#1c97f5" name="outlineColor" placeholder="请选择颜色" class="layui-input colorChoose" id="pBorderColor-input">
                    <div style="float: left;">
                        <div id="pBorderColor" style="margin: 0;"></div>
                    </div>
                </div>
            </div>
            <div class="layui-form-item none" id="WBorderWidth">
                <label  class="layui-form-label l_title">边框线宽</label>
                <div class="layui-input-block">
                    <input type="text" name="outlineWidth"  placeholder="请输入边框线宽" autocomplete="off" class="layui-input"> 
                </div>
            </div>
            <div class="layui-form-item">
                <label  class="layui-form-label l_title">最大高度</label>
                <div class="layui-input-block">
                    <input type="text" name="maximumHeights"  placeholder="请输入最大高度" autocomplete="off" class="layui-input"> 
                </div>
            </div>
            <div class="layui-form-item">
                <label  class="layui-form-label l_title">最小高度</label>
                <div class="layui-input-block">
                    <input type="text" name="minimumHeights"  placeholder="请输入最小高度" autocomplete="off" class="layui-input"> 
                </div>
            </div>
            <div class="layui-form-item">
                <label  class="layui-form-label l_title">最小可视距离</label>
                <div class="layui-input-block">
                    <input type="text" name="near"  placeholder="请输入最小可视距离" autocomplete="off" class="layui-input"> 
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label l_title">最大可视距离</label>
                <div class="layui-input-block">
                    <input type="text" name="far"  placeholder="请输入最大可视距离" autocomplete="off" class="layui-input"> 
                </div>
            </div>
        </div>
        <!-- 扫掠体 -->
        <div class="ImagePoint none">
            <div class="layui-form-item">
                <label  class="layui-form-label l_title">选择矢量服务</label>
                <div class="layui-input-block">
                    <select name="layerName" lay-filter="demo1">
                        <option value="21">21</option>
                        <option value="32">32</option>
                        <option value="32">32</option>
                        <option value="32">32</option>
                    </select> 
                </div>
            </div>
            <div class="layui-form-item">
                <label  class="layui-form-label l_title">显示级别</label>
                <div class="layui-input-block">
                    <div style="float: left;width: 32%;margin-right: 2%;">
                        <input type="text" name="level_min"  placeholder="0" autocomplete="off" class="layui-input">
                    </div>
                    <div style="float: left; width: 32%;margin-right: 2%;">
                        <input type="text" name="level_max"  placeholder="21" autocomplete="off" class="layui-input">
                    </div>
                </div>
            </div>
            <div class="layui-form-item">
                <label  class="layui-form-label l_title">扫掠体类型</label>
                <div class="layui-input-block">
                    <select name="slttype" lay-verify="">
                        <option value="圆形">圆形</option>    
                        <option value="星型">星型</option>
                        <option value="矩形">矩形</option>
                    </select> 
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label l_title">半径</label>
                <div class="layui-input-block">
                    <input type="text" name="slt_radius"  placeholder="请输入半径" autocomplete="off" class="layui-input"> 
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label l_title">材质</label>
                <div class="layui-input-block">
                    <input type="text" name="material" value="#1c97f5" placeholder="请选择颜色" class="layui-input colorChoose" id="IBorderColor-input">
                    <div style="float: left;">
                        <div id="IBorderColor" style="margin: 0;"></div>
                    </div>
                </div>
            </div>
            <div class="layui-form-item">
                <label  class="layui-form-label l_title">转角类型</label>
                <div class="layui-input-block">
                    <select name="cornerType" lay-verify="">
                        <option value="圆角">圆角</option>    
                        <option value="直角">直角</option>
                        <option value="折线">折线</option>
                    </select> 
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label l_title">高度类型</label>
                <div class="layui-input-block">
                    <select name="heightReference" lay-verify="">
                        <option value="绝对值">绝对值</option>    
                        <option value="依附地表">依附地表</option>
                        <option value="相对地表">相对地表</option>
                    </select> 
                </div>
            </div>
            <div class="layui-form-item">
                <label  class="layui-form-label l_title">显示高度</label>
                <div class="layui-input-block">
                    <input type="text" name="height"  placeholder="请输入显示高度" autocomplete="off" class="layui-input"> 
                </div>
            </div>
            <div class="layui-form-item">
                <label  class="layui-form-label l_title">最小可视距离</label>
                <div class="layui-input-block">
                    <input type="text" name="near"  placeholder="请输入最小可视距离" autocomplete="off" class="layui-input"> 
                </div>
            </div>
            <div class="layui-form-item">
                <label  class="layui-form-label l_title">最大可视距离</label>
                <div class="layui-input-block">
                    <input type="text" name="far"  placeholder="请输入最大可视距离" autocomplete="off" class="layui-input"> 
                </div>
            </div>
        </div>
        <!-- 街景 -->
        <div class="modelPoint none">
            <div class="layui-form-item">
                <label  class="layui-form-label l_title">选择矢量服务</label>
                <div class="layui-input-block">
                    <select name="layerName" lay-filter="demo1">
                        <option value="21">21</option>
                        <option value="32">32</option>
                        <option value="32">32</option>
                        <option value="32">32</option>
                    </select> 
                </div>
            </div>
            <div class="layui-form-item">
                <label  class="layui-form-label l_title">显示级别</label>
                <div class="layui-input-block">
                    <div style="float: left;width: 32%;margin-right: 2%;">
                        <input type="text" name="level_min"  placeholder="0" autocomplete="off" class="layui-input">
                    </div>
                    <div style="float: left; width: 32%;margin-right: 2%;">
                        <input type="text" name="level_max"  placeholder="21" autocomplete="off" class="layui-input">
                    </div>
                </div>
            </div>
            <div class="layui-form-item">
                <label  class="layui-form-label l_title">街景透明度</label>
                <div class="layui-input-block">
                    <select name="opacity" lay-verify="">
                        <option value="1">1</option>
                        <option value="0.6">0.6</option>
                        <option value="0.3">0.3</option>
                        <option value="0">0</option>
                    </select> 
                </div>
            </div>
            <div class="layui-form-item">
                <label  class="layui-form-label l_title">线颜色</label>
                <div class="layui-input-block">
                    <input type="text" name="polylinemMterial" value="#1c97f5" placeholder="请选择颜色" class="layui-input colorChoose" id="MStyleColor-input">
                    <div style="float: left;">
                        <div id="MStyleColor" style="margin: 0;"></div>
                    </div>
                </div>
            </div>
            <div class="layui-form-item">
                <label  class="layui-form-label l_title">线类型</label>
                <div class="layui-input-block">
                    <select name="polylinemArcType" lay-verify="">
                        <option value="直线">直线</option>    
                        <option value="虚线">虚线</option>
                    </select> 
                </div>
            </div>
            <div class="layui-form-item">
                <label  class="layui-form-label l_title">线宽</label>
                <div class="layui-input-block">
                    <input type="text" name="polylineWidth"  placeholder="请输入线宽" autocomplete="off" class="layui-input"> 
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label l_title">高度方式</label>
                <div class="layui-input-block">
                    <select name="clampToGround" lay-verify="">
                        <option value="贴地">贴地</option>    
                        <option value="不贴地">不贴地</option>
                    </select> 
                </div>
            </div>
            <div class="layui-form-item">
                <label  class="layui-form-label l_title">最小可视距离</label>
                <div class="layui-input-block">
                    <input type="text" name="near"  placeholder="请输入最小可视距离" autocomplete="off" class="layui-input"> 
                </div>
            </div>
            <div class="layui-form-item">
                <label  class="layui-form-label l_title">最大可视距离</label>
                <div class="layui-input-block">
                    <input type="text" name="far"  placeholder="请输入最大可视距离" autocomplete="off" class="layui-input"> 
                </div>
            </div>
        </div>
        <!-- 沿线模型-->
        <div class="along none">
            <div class="layui-form-item">
                <label  class="layui-form-label l_title">选择矢量服务</label>
                <div class="layui-input-block">
                    <select name="layerName" lay-filter="demo1">
                        <option value="21">21</option>
                        <option value="32">32</option>
                        <option value="32">32</option>
                        <option value="32">32</option>
                    </select> 
                </div>
            </div>
            <div class="layui-form-item">
                <label  class="layui-form-label l_title">显示级别</label>
                <div class="layui-input-block">
                    <div style="float: left;width: 32%;margin-right: 2%;">
                        <input type="text" name="level_min"  placeholder="0" autocomplete="off" class="layui-input">
                    </div>
                    <div style="float: left; width: 32%;margin-right: 2%;">
                        <input type="text" name="level_max"  placeholder="21" autocomplete="off" class="layui-input">
                    </div>
                </div>
            </div>
            <div class="layui-form-item">
                <label  class="layui-form-label l_title">显示模型</label>
                <div class="layui-input-block">
                    <input type="text" name="url"  placeholder="请上传模型" autocomplete="off" class="layui-input"> 
                    <button type="button" class="layui-btn layui-btn-normal" style="margin-top: 5px;">选择文件</button>
                </div>
            </div>
            <div class="layui-form-item">
                <label  class="layui-form-label l_title">是否填充</label>
                <div class="layui-input-block">
                  <input type="checkbox"  name="show" lay-skin="switch" lay-filter="switchTest" lay-text="填充|不填充">
                </div>
            </div> 
            <div class="layui-form-item">
                <label  class="layui-form-label l_title">模型颜色</label>
                <div class="layui-input-block">
                    <input type="text" name="color" value="#1c97f5" placeholder="请选择颜色" class="layui-input colorChoose" id="AModelColor-input">
                    <div style="float: left;">
                        <div id="AModelColor" style="margin: 0;"></div>
                    </div>
                </div>
            </div>
            <div class="layui-form-item">
                <label  class="layui-form-label l_title">高亮颜色</label>
                <div class="layui-input-block">
                    <input type="text" name="lightColor" value="#1c97f5" placeholder="请选择颜色" class="layui-input colorChoose" id="AMStyleColor-input">
                    <div style="float: left;">
                        <div id="AMStyleColor" style="margin: 0;"></div>
                    </div>
                </div>
            </div>
            <div class="layui-form-item">
                <label  class="layui-form-label l_title">缩放比例</label>
                <div class="layui-input-block">
                    <input type="text" name="scale"  placeholder="请输入缩放比例" autocomplete="off" class="layui-input"> 
                </div>
            </div>
            <!-- 变幻矩阵 -->
            <div class="layui-form-item">
                <label  class="layui-form-label l_title">变幻矩阵</label>
                <div class="layui-input-block">
                        <div style="float: left;width: 32%;margin-right: 2%;">
                            <input type="text" name="x"  placeholder="输入x" autocomplete="off" class="layui-input">
                        </div>
                        <div style="float: left; width: 32%;margin-right: 2%;">
                            <input type="text" name="y"  placeholder="输入y" autocomplete="off" class="layui-input">
                        </div>
                        <div style="float: left;width: 32%;">
                            <input type="text" name="z"  placeholder="输入z" autocomplete="off" class="layui-input">
                        </div>
                </div>
            </div>
            <div class="layui-form-item">
                <label  class="layui-form-label l_title">沿线间隔</label> 
                <div class="layui-input-block">
                    <input style="width: 33.3%!important; float: left;" type="text" name="distance"  placeholder="输入沿线间隔" autocomplete="off" class="layui-input">
                    <span style="float: left; line-height: 38px;margin-left: 3px;">米</span>
                </div>
            </div>
            <div class="layui-form-item">
                <label  class="layui-form-label l_title">是否开启阴影</label>
                <div class="layui-input-block">
                    <select name="shadows" lay-verify="">
                        <option value="不投射或接收阴影">不投射或接收阴影</option>
                        <option value="投射和接收阴影">投射和接收阴影</option>
                        <option value="仅投射阴影">仅投射阴影</option>
                        <option value="仅接收阴影">仅接收阴影</option>
                    </select> 
                </div>
            </div>
            <div class="layui-form-item">
                <label  class="layui-form-label l_title">高度类型</label>
                <div class="layui-input-block">
                    <select name="heightReference" lay-verify="">
                        <option value="绝对值">绝对值</option>    
                        <option value="依附地表">依附地表</option>
                        <option value="相对地表">相对地表</option>
                    </select> 
                </div>
            </div>
            <div class="layui-form-item">
                <label  class="layui-form-label l_title">显示高度</label>
                <div class="layui-input-block">
                    <input type="text" name="height"  placeholder="请输入显示高度" autocomplete="off" class="layui-input"> 
                </div>
            </div>
            <div class="layui-form-item">
                <label  class="layui-form-label l_title">线颜色</label>
                <div class="layui-input-block">
                    <input type="text" name="linecolor" value="#1c97f5" placeholder="请选择颜色" class="layui-input colorChoose" id="ALineColor-input">
                    <div style="float: left;">
                        <div id="ALineColor" style="margin: 0;"></div>
                    </div>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label l_title">最小可视距离</label>
                <div class="layui-input-block">
                    <input type="text" name="near"  placeholder="请输入最小可视距离" autocomplete="off" class="layui-input"> 
                </div>
            </div>
            <div class="layui-form-item">
                <label  class="layui-form-label l_title">最大可视距离</label>
                <div class="layui-input-block">
                    <input type="text" name="far"  placeholder="请输入最大可视距离" autocomplete="off" class="layui-input"> 
                </div>
            </div>
        </div>
    </div>
</body>
<script src="./../../JS/jquery-2.0.3.js"></script>
<script src="./../../node_modules/iframeResizer.contentWindow.js"></script>
<script src="./../../layui/layui.js"></script>
<script>
    var form = null;
     $(function () {
         //  获取最外层iframe的id去适配
        var $view = parent.parent.document.getElementById("view");
        layui.use(['element','form','colorpicker'], function () {
            var $ = layui.$,
                element = layui.element,
                colorpicker = layui.colorpicker;
            form = layui.form;
            //给表单赋值
            if (parent.sIframForm && parent.sIframForm.d_type === 'polyline') {
                var obj = JSON.parse(JSON.stringify(parent.sIframForm))
                //样式类型
                pointType(obj.styletype);
                //外边框显示
                if(obj.outline) {
                    $('#WBorderColor').show()
                    $('#WBorderWidth').show()
                }
                form.val('sIfram',obj);
            }
            // 是否默认基础点
            var pv  = $('#allLine').val();
            if(pv == 'polylinelayer'){
                $('.basisPoints').removeClass('none')
            }
            // 监听基础线、墙、扫掠体、街景、沿线模型
            form.on('select(allLine)', function (data) {
                pointType(data.value)
            });
            // 监听文本点中的文字背景按钮
            //监听指定开关
            form.on('switch(WShowBorder)', function(data){
                if(this.checked == true){
                    $('#WBorderColor').show()
                    $('#WBorderWidth').show()
                }else{
                    $('#WBorderColor').hide()
                    $('#WBorderWidth').hide()
                }
            });
            // 基础线 线颜色
            colorpicker.render({
                elem: '#pointColor'
                ,color: (parent.sIframForm && parent.sIframForm.material) || '#1c97f5'
                ,done: function(color){
                $('#pointColor-input').val(color);
                }
            });
            // 墙 边框颜色
            colorpicker.render({
                elem: '#pBorderColor'
                ,color: (parent.sIframForm && parent.sIframForm.outlineColor) || '#1c97f5'
                ,done: function(color){
                $('#pBorderColor-input').val(color);
                }
            });
            // 墙 材质
            colorpicker.render({
                elem: '#tpFillColor'
                ,color: (parent.sIframForm && parent.sIframForm.material) || '#1c97f5'
                ,done: function(color){
                $('#tpFillColor-input').val(color);
                }
            });
            // 扫掠体 材质
            colorpicker.render({
                elem: '#IBorderColor'
                ,color: (parent.sIframForm && parent.sIframForm.material) || '#1c97f5'
                ,done: function(color){
                $('#IBorderColor-input').val(color);
                }
            });
            // 街景 线颜色
            colorpicker.render({
                elem: '#MStyleColor'
                ,color: (parent.sIframForm && parent.sIframForm.polylinemMterial) || '#1c97f5'
                ,done: function(color){
                $('#MStyleColor-input').val(color);
                }
            });
            // 沿线模型 模型颜色
            colorpicker.render({
                elem: '#AModelColor'
                ,color: (parent.sIframForm && parent.sIframForm.color) || '#1c97f5'
                ,done: function(color){
                $('#AModelColor-input').val(color);
                }
            });
            // 沿线模型 高亮颜色
            colorpicker.render({
                elem: '#AMStyleColor'
                ,color: (parent.sIframForm && parent.sIframForm.lightColor) || '#1c97f5'
                ,done: function(color){
                $('#AMStyleColor-input').val(color);
                }
            });
            // 沿线模型 线颜色
            colorpicker.render({
                elem: '#ALineColor'
                ,color: (parent.sIframForm && parent.sIframForm.linecolor) || '#1c97f5'
                ,done: function(color){
                $('#ALineColor-input').val(color);
                }
            });

        });
    })

    //选择点类型
    function pointType(data) {
        if(data == 'polylinelayer'){ //基础线
            $('.basisPoints').removeClass('none')
            $('.textPoint').addClass('none')
            $('.ImagePoint').addClass('none')
            $('.modelPoint').addClass('none')
            $('.along').addClass('none')
        }else if(data == 'polylineWallLayer'){ //墙
            $('.basisPoints').addClass('none')
            $('.textPoint').removeClass('none')
            $('.ImagePoint').addClass('none')
            $('.modelPoint').addClass('none')
            $('.along').addClass('none')
        }else if(data== 'polylinevolumelayer'){ //扫掠体
            $('.basisPoints').addClass('none')
            $('.textPoint').addClass('none')
            $('.ImagePoint').removeClass('none')
            $('.modelPoint').addClass('none')
            $('.along').addClass('none')
        }else if(data == 'Streetscape'){ //街景
            $('.basisPoints').addClass('none')
            $('.textPoint').addClass('none')
            $('.ImagePoint').addClass('none')
            $('.modelPoint').removeClass('none')
            $('.along').addClass('none')
        }else if(data == 'polylinemodellayer'){   //沿线模型(切片不可用)
            $('.basisPoints').addClass('none')
            $('.textPoint').addClass('none')
            $('.ImagePoint').addClass('none')
            $('.modelPoint').addClass('none')
            $('.along').removeClass('none')
        }
    }

</script>
</html>